package com.ocom.xcxapi.client;

import com.alibaba.fastjson.JSONObject;
import com.ocom.common.constant.UnifiendPayUrl;
import com.ocom.common.request.ugcapi.OrderedShowRequest;
import com.ocom.common.resp.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Component
@FeignClient(value = "xfrecode")
public interface XfRecordFeign {

    @PostMapping(UnifiendPayUrl.URL_getConsumeDetail)
    Result getConsumeDetail(@RequestBody JSONObject jsonObject);

    @PostMapping(UnifiendPayUrl.URL_getConsumeReports)
    Result getConsumeReports(@RequestBody JSONObject jsonObject);

    @PostMapping(UnifiendPayUrl.URL_getOrderDishesDetail)
    public Result getOrderDishesDetail(@RequestBody OrderedShowRequest request);
}
